package com.googydiary.service;

import javax.servlet.http.HttpServletRequest;

import com.googydiary.bean.UserBean;
import com.googydiary.dao.*;

public class RequestMapping {
	public static UserBean processLoginRequest(HttpServletRequest request){
		UserBean bean=new UserBean();
		bean.setUserName(request.getParameter("txtLoginId"));
		bean.setPassword(request.getParameter("txtPassword"));
		return bean;
	}
	public static boolean authenticateUser(UserBean bean){
		LoginFactory obj=new LoginFactory();
		return obj.ValidateLogin(bean);
		
	}
}
